package com.ruoyi.crop.api.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 排班计划表
 * @TableName src_plan_classes
 */
@TableName(value ="src_plan_classes")
@Data
public class PlanClasses implements Serializable {
    /**
     * 排班计划id
     */
    @TableId(type = IdType.AUTO)
    @ExcelProperty("planId")
    private Integer planId;

    /**
     * 排班计划编码
     */
    @ExcelProperty("planCode")
    private String planCode;

    /**
     * 排班计划名称
     */
    @ExcelProperty("planName")
    private String planName;

    /**
     * 班组类型
     */
    @ExcelProperty("typeId")
    private String typeId;

    /**
     *
     */
    @ExcelProperty("aroundId")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date beginTime;

    /**
     *
     */
    @ExcelProperty("aroundId")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

    /**
     * 轮班方式
     */
    @ExcelProperty("aroundId")
    private Integer aroundId;

    /**
     * 倒班方式
     */
    @ExcelProperty("wayId")
    private String wayId;

    /**
     * 单据状态
     */
    @ExcelProperty("documentStatus")
    private String documentStatus;

    /**
     *
     */
    @ExcelProperty("remark")
    private String remark;

    /**
     *
     */
    @ExcelProperty("createTime")
    private Date createTime;

    /**
     *
     */
    @ExcelProperty("createBy")
    private String createBy;

    /**
     *
     */
    @ExcelProperty("updateTime")
    private Date updateTime;

    /**
     *
     */
    @ExcelProperty("updateBy")
    private String updateBy;
    @ExcelProperty("updateBy")
    private Integer materialLotId;

    @TableField(exist = false)
    private String materialCode;

    /**
     *
     */
    private Integer delFlag;
    @TableField(exist = false)
    private String uname;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
